package patterns.actions.interpreter.arithmetic;

public class Subtract implements ArithmeticExpression {
	ArithmeticExpression right;
	ArithmeticExpression left;

	Subtract(ArithmeticExpression right, ArithmeticExpression left) {
		this.left = left;
		this.right = right;
	}

	@Override
	public int interpret(Variables var) {
		return right.interpret(var) - left.interpret(var);
	}

}
